﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:settings="clr-namespace:WGM_Client_Net35.Properties"
    x:Class="WGM_Client_Net35.LocalOptionsWindow"
    Title="WGM Local Options Window" 
    Height="605" 
    Width="609" 
    Margin="0" 
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" 
    ResizeMode="NoResize">
    <Window.Resources>
        <Style x:Key="FontSelectorCombobox" TargetType="{x:Type ComboBox}">
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel IsItemsHost="True" />
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="ItemTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding}" FontFamily="{Binding}"/>
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    	<ControlTemplate x:Key="ComboBoxControlTemplate1" TargetType="{x:Type ComboBox}">
    		<Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    			<Grid>
    				<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="Border" Background="{TemplateBinding Background}" BorderStyle="Sunken" BorderThickness="2,2,2,2">
    					<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    						<SolidColorBrush/>
    					</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    					<Popup Focusable="False" AllowsTransparency="True" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" x:Name="PART_Popup">
    						<Microsoft_Windows_Themes:SystemDropShadowChrome MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{Binding Path=ActualWidth, ElementName=Border}" x:Name="Shdw" Color="#00FFFFFF">
    							<Border x:Name="DropDownBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1,1,1,1">
    								<ScrollViewer Template="{DynamicResource ScrollViewerControlTemplate1}" BorderBrush="#FF000000">
    									<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained"/>
    								</ScrollViewer>
    							</Border>
    						</Microsoft_Windows_Themes:SystemDropShadowChrome>
    					</Popup>
    				</Microsoft_Windows_Themes:ClassicBorderDecorator>
    				<DockPanel Margin="2,2,2,2" Background="{x:Null}">
    					<FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right"/>
    					<Border Margin="{TemplateBinding Padding}" x:Name="SelectedItemBorder">
    						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1,1,1,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding SelectionBoxItem}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"/>
    					</Border>
    				</DockPanel>
    				<ToggleButton Focusable="False" Margin="2,2,2,2" MinHeight="0" MinWidth="0" Width="Auto" ClickMode="Press" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Background="#00997474">
    					<ToggleButton.Style>
    						<Style TargetType="{x:Type ToggleButton}">
    							<Setter Property="MinWidth" Value="0"/>
    							<Setter Property="MinHeight" Value="0"/>
    							<Setter Property="Width" Value="NaN"/>
    							<Setter Property="Height" Value="NaN"/>
    							<Setter Property="Background" Value="#00FFFFFF"/>
    							<Setter Property="BorderBrush">
    								<Setter.Value>
    									<SolidColorBrush/>
    								</Setter.Value>
    							</Setter>
    							<Setter Property="BorderThickness" Value="2,2,2,2"/>
    							<Setter Property="Template">
    								<Setter.Value>
    									<ControlTemplate TargetType="{x:Type ToggleButton}">
    										<DockPanel SnapsToDevicePixels="True" Background="{TemplateBinding Background}" LastChildFill="False">
    											<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="Border" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" BorderBrush="{TemplateBinding BorderBrush}" BorderStyle="AltRaised" BorderThickness="{TemplateBinding BorderThickness}" DockPanel.Dock="Right">
    												<Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="M0,0L3.5,4 7,0z"/>
    											</Microsoft_Windows_Themes:ClassicBorderDecorator>
    										</DockPanel>
    										<ControlTemplate.Triggers>
    											<Trigger Property="IsChecked" Value="True">
    												<Setter Property="BorderStyle" TargetName="Border" Value="AltPressed"/>
    											</Trigger>
    										</ControlTemplate.Triggers>
    									</ControlTemplate>
    								</Setter.Value>
    							</Setter>
    							<Style.Triggers>
    								<Trigger Property="IsEnabled" Value="False">
    									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
    								</Trigger>
    							</Style.Triggers>
    						</Style>
    					</ToggleButton.Style>
    				</ToggleButton>
    			</Grid>
    		</Border>
    		<ControlTemplate.Triggers>
    			<MultiTrigger>
    				<MultiTrigger.Conditions>
    					<Condition Property="IsSelectionBoxHighlighted" Value="True"/>
    					<Condition Property="IsDropDownOpen" Value="False"/>
    				</MultiTrigger.Conditions>
    			</MultiTrigger>
    			<Trigger Property="IsSelectionBoxHighlighted" Value="True"/>
    			<Trigger Property="HasItems" Value="False">
    				<Setter Property="MinHeight" TargetName="DropDownBorder" Value="95"/>
    			</Trigger>
    			<Trigger Property="IsEnabled" Value="False">
    				<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    				<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    			</Trigger>
    			<Trigger Property="IsGrouping" Value="True">
    				<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
    			</Trigger>
    			<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="True">
    				<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
    				<Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
    			</Trigger>
    		</ControlTemplate.Triggers>
    	</ControlTemplate>
    	<ControlTemplate x:Key="ScrollViewerControlTemplate1" TargetType="{x:Type ScrollViewer}">
    		<Grid x:Name="Grid" Background="{TemplateBinding Background}">
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="*"/>
    				<ColumnDefinition Width="Auto"/>
    			</Grid.ColumnDefinitions>
    			<Grid.RowDefinitions>
    				<RowDefinition Height="*"/>
    				<RowDefinition Height="Auto"/>
    			</Grid.RowDefinitions>
    			<Rectangle x:Name="Corner" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Grid.Column="1" Grid.Row="1"/>
    			<ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Grid.Column="0" Grid.Row="0" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False"/>
    			<ScrollBar Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_VerticalScrollBar" Style="{DynamicResource ScrollBarStyle1}" Grid.Column="1" Grid.Row="0" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="VerticalScrollBar" Background="#FF5B7591"/>
    			<ScrollBar Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="HorizontalScrollBar"/>
    		</Grid>
    	</ControlTemplate>
    	<Style x:Key="ScrollBarStyle1" TargetType="{x:Type ScrollBar}">
    		<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
    		<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
    		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}"/>
    		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    		<Setter Property="BorderThickness" Value="0,0,0,0"/>
    		<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    		<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ScrollBar}">
    					<Grid Background="#00E2E2E2" Width="12">
    						<Grid.RowDefinitions>
    							<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
    							<RowDefinition Height="1E-05*"/>
    							<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
    						</Grid.RowDefinitions>
    						<Viewbox Stretch="Fill">
    							<RepeatButton MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Height="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" Content="M 0 4 L 7 4 L 3.5 0 Z" Command="ScrollBar.LineUpCommand" Background="#FF4E7589">
    								<RepeatButton.Style>
    									<Style TargetType="{x:Type RepeatButton}">
    										<Setter Property="OverridesDefaultStyle" Value="True"/>
    										<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    										<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    										<Setter Property="BorderBrush">
    											<Setter.Value>
    												<SolidColorBrush/>
    											</Setter.Value>
    										</Setter>
    										<Setter Property="BorderThickness" Value="2,2,2,2"/>
    										<Setter Property="MinWidth" Value="0"/>
    										<Setter Property="MinHeight" Value="0"/>
    										<Setter Property="IsTabStop" Value="False"/>
    										<Setter Property="Focusable" Value="False"/>
    										<Setter Property="Template">
    											<Setter.Value>
    												<ControlTemplate TargetType="{x:Type RepeatButton}">
    													<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="ClassicBorder" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderStyle="AltRaised" BorderThickness="{TemplateBinding BorderThickness}">
    														<Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"/>
    													</Microsoft_Windows_Themes:ClassicBorderDecorator>
    													<ControlTemplate.Triggers>
    														<Trigger Property="IsPressed" Value="True">
    															<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="AltPressed"/>
    														</Trigger>
    														<Trigger Property="IsEnabled" Value="False">
    															<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
    														</Trigger>
    													</ControlTemplate.Triggers>
    												</ControlTemplate>
    											</Setter.Value>
    										</Setter>
    									</Style>
    								</RepeatButton.Style>
    							</RepeatButton>
    						</Viewbox>
    						<Rectangle Grid.Row="1">
    							<Rectangle.Fill>
    								<SolidColorBrush Color="#00FFFFFF" Opacity="0.5"/>
    							</Rectangle.Fill>
    						</Rectangle>
    						<Track x:Name="PART_Track" Grid.Row="1" IsDirectionReversed="True">
    							<Track.Thumb>
    								<Thumb Background="#FF3E7485" Foreground="#FF4A7B87">
    									<Thumb.Style>
    										<Style TargetType="{x:Type Thumb}">
    											<Setter Property="Template">
    												<Setter.Value>
    													<ControlTemplate TargetType="{x:Type Thumb}">
    														<Microsoft_Windows_Themes:ClassicBorderDecorator BorderStyle="Raised" BorderThickness="3,3,3,3" Background="#FF477D82">
    															<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																<SolidColorBrush/>
    															</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    														</Microsoft_Windows_Themes:ClassicBorderDecorator>
    													</ControlTemplate>
    												</Setter.Value>
    											</Setter>
    										</Style>
    									</Thumb.Style>
    								</Thumb>
    							</Track.Thumb>
    							<Track.IncreaseRepeatButton>
    								<RepeatButton Command="ScrollBar.PageDownCommand">
    									<RepeatButton.Style>
    										<Style TargetType="{x:Type RepeatButton}">
    											<Setter Property="OverridesDefaultStyle" Value="True"/>
    											<Setter Property="IsTabStop" Value="False"/>
    											<Setter Property="Focusable" Value="False"/>
    											<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    											<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
    											<Setter Property="Template">
    												<Setter.Value>
    													<ControlTemplate TargetType="{x:Type RepeatButton}">
    														<Rectangle x:Name="PageButtonBackground" Fill="#00FFFFFF"/>
    														<ControlTemplate.Triggers>
    															<Trigger Property="IsPressed" Value="True">
    																<Setter Property="Fill" TargetName="PageButtonBackground" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"/>
    															</Trigger>
    														</ControlTemplate.Triggers>
    													</ControlTemplate>
    												</Setter.Value>
    											</Setter>
    										</Style>
    									</RepeatButton.Style>
    								</RepeatButton>
    							</Track.IncreaseRepeatButton>
    							<Track.DecreaseRepeatButton>
    								<RepeatButton Command="ScrollBar.PageUpCommand">
    									<RepeatButton.Style>
    										<Style TargetType="{x:Type RepeatButton}">
    											<Setter Property="OverridesDefaultStyle" Value="True"/>
    											<Setter Property="IsTabStop" Value="False"/>
    											<Setter Property="Focusable" Value="False"/>
    											<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    											<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
    											<Setter Property="Template">
    												<Setter.Value>
    													<ControlTemplate TargetType="{x:Type RepeatButton}">
    														<Rectangle x:Name="PageButtonBackground" Fill="#00FFFFFF"/>
    														<ControlTemplate.Triggers>
    															<Trigger Property="IsPressed" Value="True">
    																<Setter Property="Fill" TargetName="PageButtonBackground" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"/>
    															</Trigger>
    														</ControlTemplate.Triggers>
    													</ControlTemplate>
    												</Setter.Value>
    											</Setter>
    										</Style>
    									</RepeatButton.Style>
    								</RepeatButton>
    							</Track.DecreaseRepeatButton>
    						</Track>
    						<Viewbox Grid.Row="2" Stretch="Fill">
    							<RepeatButton MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Height="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" Content="M 0 0 L 3.5 4 L 7 0 Z" Command="ScrollBar.LineDownCommand" Background="#FF4D6E7F">
    								<RepeatButton.Style>
    									<Style TargetType="{x:Type RepeatButton}">
    										<Setter Property="OverridesDefaultStyle" Value="True"/>
    										<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    										<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    										<Setter Property="BorderBrush">
    											<Setter.Value>
    												<SolidColorBrush/>
    											</Setter.Value>
    										</Setter>
    										<Setter Property="BorderThickness" Value="2,2,2,2"/>
    										<Setter Property="MinWidth" Value="0"/>
    										<Setter Property="MinHeight" Value="0"/>
    										<Setter Property="IsTabStop" Value="False"/>
    										<Setter Property="Focusable" Value="False"/>
    										<Setter Property="Template">
    											<Setter.Value>
    												<ControlTemplate TargetType="{x:Type RepeatButton}">
    													<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="ClassicBorder" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderStyle="AltRaised" BorderThickness="{TemplateBinding BorderThickness}">
    														<Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"/>
    													</Microsoft_Windows_Themes:ClassicBorderDecorator>
    													<ControlTemplate.Triggers>
    														<Trigger Property="IsPressed" Value="True">
    															<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="AltPressed"/>
    														</Trigger>
    														<Trigger Property="IsEnabled" Value="False">
    															<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
    														</Trigger>
    													</ControlTemplate.Triggers>
    												</ControlTemplate>
    											</Setter.Value>
    										</Setter>
    									</Style>
    								</RepeatButton.Style>
    							</RepeatButton>
    						</Viewbox>
    					</Grid>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Style.Triggers>
    			<Trigger Property="Orientation" Value="Horizontal">
    				<Setter Property="Width" Value="NaN"/>
    				<Setter Property="MinWidth" Value="0"/>
    				<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
    				<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
    				<Setter Property="Template">
    					<Setter.Value>
    						<ControlTemplate TargetType="{x:Type ScrollBar}">
    							<Grid Background="{TemplateBinding Background}">
    								<Grid.ColumnDefinitions>
    									<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
    									<ColumnDefinition Width="1E-05*"/>
    									<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
    								</Grid.ColumnDefinitions>
    								<Viewbox Stretch="Fill">
    									<RepeatButton MinHeight="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" Width="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" Content="M 0 4 L 4 8 L 4 0 Z" Command="ScrollBar.LineLeftCommand">
    										<RepeatButton.Style>
    											<Style TargetType="{x:Type RepeatButton}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    												<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    												<Setter Property="BorderBrush">
    													<Setter.Value>
    														<SolidColorBrush/>
    													</Setter.Value>
    												</Setter>
    												<Setter Property="BorderThickness" Value="2,2,2,2"/>
    												<Setter Property="MinWidth" Value="0"/>
    												<Setter Property="MinHeight" Value="0"/>
    												<Setter Property="IsTabStop" Value="False"/>
    												<Setter Property="Focusable" Value="False"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type RepeatButton}">
    															<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="ClassicBorder" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderStyle="AltRaised" BorderThickness="{TemplateBinding BorderThickness}">
    																<Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"/>
    															</Microsoft_Windows_Themes:ClassicBorderDecorator>
    															<ControlTemplate.Triggers>
    																<Trigger Property="IsPressed" Value="True">
    																	<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="AltPressed"/>
    																</Trigger>
    																<Trigger Property="IsEnabled" Value="False">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
    																</Trigger>
    															</ControlTemplate.Triggers>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</RepeatButton.Style>
    									</RepeatButton>
    								</Viewbox>
    								<Rectangle Grid.Column="1">
    									<Rectangle.Fill>
    										<SolidColorBrush Color="#FFFFFFFF" Opacity="0.5"/>
    									</Rectangle.Fill>
    								</Rectangle>
    								<Track x:Name="PART_Track" Grid.Column="1">
    									<Track.Thumb>
    										<Thumb>
    											<Thumb.Style>
    												<Style TargetType="{x:Type Thumb}">
    													<Setter Property="Template">
    														<Setter.Value>
    															<ControlTemplate TargetType="{x:Type Thumb}">
    																<Microsoft_Windows_Themes:ClassicBorderDecorator Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" BorderStyle="Raised" BorderThickness="3,3,3,3">
    																	<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																		<SolidColorBrush/>
    																	</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																</Microsoft_Windows_Themes:ClassicBorderDecorator>
    															</ControlTemplate>
    														</Setter.Value>
    													</Setter>
    												</Style>
    											</Thumb.Style>
    										</Thumb>
    									</Track.Thumb>
    									<Track.IncreaseRepeatButton>
    										<RepeatButton Command="ScrollBar.PageRightCommand">
    											<RepeatButton.Style>
    												<Style TargetType="{x:Type RepeatButton}">
    													<Setter Property="OverridesDefaultStyle" Value="True"/>
    													<Setter Property="IsTabStop" Value="False"/>
    													<Setter Property="Focusable" Value="False"/>
    													<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
    													<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
    													<Setter Property="Template">
    														<Setter.Value>
    															<ControlTemplate TargetType="{x:Type RepeatButton}">
    																<Rectangle x:Name="PageButtonBackground" Fill="#00FFFFFF"/>
    																<ControlTemplate.Triggers>
    																	<Trigger Property="IsPressed" Value="True">
    																		<Setter Property="Fill" TargetName="PageButtonBackground" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"/>
    																	</Trigger>
    																</ControlTemplate.Triggers>
    															</ControlTemplate>
    														</Setter.Value>
    													</Setter>
    												</Style>
    											</RepeatButton.Style>
    										</RepeatButton>
    									</Track.IncreaseRepeatButton>
    									<Track.DecreaseRepeatButton>
    										<RepeatButton Command="ScrollBar.PageLeftCommand">
    											<RepeatButton.Style>
    												<Style TargetType="{x:Type RepeatButton}">
    													<Setter Property="OverridesDefaultStyle" Value="True"/>
    													<Setter Property="IsTabStop" Value="False"/>
    													<Setter Property="Focusable" Value="False"/>
    													<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
    													<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
    													<Setter Property="Template">
    														<Setter.Value>
    															<ControlTemplate TargetType="{x:Type RepeatButton}">
    																<Rectangle x:Name="PageButtonBackground" Fill="#00FFFFFF"/>
    																<ControlTemplate.Triggers>
    																	<Trigger Property="IsPressed" Value="True">
    																		<Setter Property="Fill" TargetName="PageButtonBackground" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"/>
    																	</Trigger>
    																</ControlTemplate.Triggers>
    															</ControlTemplate>
    														</Setter.Value>
    													</Setter>
    												</Style>
    											</RepeatButton.Style>
    										</RepeatButton>
    									</Track.DecreaseRepeatButton>
    								</Track>
    								<Viewbox Grid.Column="2" Stretch="Fill">
    									<RepeatButton MinHeight="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" Width="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" Content="M 0 0 L 0 8 L 4 4 Z" Command="ScrollBar.LineRightCommand">
    										<RepeatButton.Style>
    											<Style TargetType="{x:Type RepeatButton}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    												<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    												<Setter Property="BorderBrush">
    													<Setter.Value>
    														<SolidColorBrush/>
    													</Setter.Value>
    												</Setter>
    												<Setter Property="BorderThickness" Value="2,2,2,2"/>
    												<Setter Property="MinWidth" Value="0"/>
    												<Setter Property="MinHeight" Value="0"/>
    												<Setter Property="IsTabStop" Value="False"/>
    												<Setter Property="Focusable" Value="False"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type RepeatButton}">
    															<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="ClassicBorder" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderStyle="AltRaised" BorderThickness="{TemplateBinding BorderThickness}">
    																<Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"/>
    															</Microsoft_Windows_Themes:ClassicBorderDecorator>
    															<ControlTemplate.Triggers>
    																<Trigger Property="IsPressed" Value="True">
    																	<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="AltPressed"/>
    																</Trigger>
    																<Trigger Property="IsEnabled" Value="False">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
    																</Trigger>
    															</ControlTemplate.Triggers>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</RepeatButton.Style>
    									</RepeatButton>
    								</Viewbox>
    							</Grid>
    						</ControlTemplate>
    					</Setter.Value>
    				</Setter>
    			</Trigger>
    		</Style.Triggers>
    	</Style>
    	<Style x:Key="SliderStyle1" TargetType="{x:Type Slider}">
    		<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
    		<Setter Property="Background" Value="#00FFFFFF"/>
    		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Slider}">
    					<Border Width="{TemplateBinding Width}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    						<Grid>
    							<Grid.ColumnDefinitions>
    								<ColumnDefinition Width="*"/>
    							</Grid.ColumnDefinitions>
    							<Grid.RowDefinitions>
    								<RowDefinition Height="Auto"/>
    								<RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
    								<RowDefinition Height="Auto"/>
    							</Grid.RowDefinitions>
    							<TickBar Visibility="Collapsed" x:Name="TopTick" Height="4" Fill="{TemplateBinding Foreground}" Placement="Top"/>
    							<Microsoft_Windows_Themes:ClassicBorderDecorator Margin="0,0,0,1" x:Name="TrackBackground" Height="4" BorderStyle="Sunken" BorderThickness="2,2,2,2" Grid.Row="1" Background="#FF486D91">
    								<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    									<SolidColorBrush/>
    								</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    								<Canvas Margin="-2,-2,-2,-2" Background="#FF3F6E71">
                                        <Canvas.Effect>
                                            <DropShadowEffect Color="#FF5389C0"/>
                                        </Canvas.Effect>
                                        <Rectangle Visibility="Hidden" x:Name="PART_SelectionRange" Height="4" Fill="#FF5089B1"/>
    								</Canvas>
    							</Microsoft_Windows_Themes:ClassicBorderDecorator>
    							<Track x:Name="PART_Track" Grid.Row="1">
    								<Track.DecreaseRepeatButton>
    									<RepeatButton Command="Slider.DecreaseLarge">
    										<RepeatButton.Style>
    											<Style TargetType="{x:Type RepeatButton}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="IsTabStop" Value="False"/>
    												<Setter Property="Focusable" Value="False"/>
    												<Setter Property="Background" Value="#00FFFFFF"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type RepeatButton}">
    															<Border Background="{TemplateBinding Background}"/>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</RepeatButton.Style>
    									</RepeatButton>
    								</Track.DecreaseRepeatButton>
    								<Track.IncreaseRepeatButton>
    									<RepeatButton Command="Slider.IncreaseLarge">
    										<RepeatButton.Style>
    											<Style TargetType="{x:Type RepeatButton}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="IsTabStop" Value="False"/>
    												<Setter Property="Focusable" Value="False"/>
    												<Setter Property="Background" Value="#00FFFFFF"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type RepeatButton}">
    															<Border Background="{TemplateBinding Background}"/>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</RepeatButton.Style>
    									</RepeatButton>
    								</Track.IncreaseRepeatButton>
    								<Track.Thumb>
    									<Thumb x:Name="Thumb" Background="#FF88A3AC">
    										<Thumb.Style>
    											<Style TargetType="{x:Type Thumb}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="Foreground" Value="{x:Null}"/>
    												<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    												<Setter Property="Height" Value="21"/>
    												<Setter Property="Width" Value="11"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type Thumb}">
    															<Microsoft_Windows_Themes:ClassicBorderDecorator Background="{TemplateBinding Background}" BorderStyle="Raised" BorderThickness="3,3,3,3">
    																<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																	<SolidColorBrush/>
    																</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																<Rectangle Opacity="0.5" Margin="-1,-1,-1,-1" x:Name="ForegroundRect" Fill="{TemplateBinding Foreground}"/>
    															</Microsoft_Windows_Themes:ClassicBorderDecorator>
    															<ControlTemplate.Triggers>
    																<Trigger Property="IsDragging" Value="True">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																</Trigger>
    																<Trigger Property="IsEnabled" Value="False">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																</Trigger>
    															</ControlTemplate.Triggers>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</Thumb.Style>
    									</Thumb>
    								</Track.Thumb>
    							</Track>
    							<TickBar Visibility="Collapsed" x:Name="BottomTick" Height="4" Grid.Row="2" Fill="{TemplateBinding Foreground}" Placement="Bottom"/>
    						</Grid>
    					</Border>
    					<ControlTemplate.Triggers>
    						<Trigger Property="TickPlacement" Value="TopLeft">
    							<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
    							<Setter Property="Style" TargetName="Thumb">
    								<Setter.Value>
    									<Style TargetType="{x:Type Thumb}">
    										<Setter Property="OverridesDefaultStyle" Value="True"/>
    										<Setter Property="Foreground" Value="{x:Null}"/>
    										<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    										<Setter Property="Height" Value="21"/>
    										<Setter Property="Width" Value="11"/>
    										<Setter Property="Template">
    											<Setter.Value>
    												<ControlTemplate TargetType="{x:Type Thumb}">
    													<Canvas SnapsToDevicePixels="True">
    														<Path Fill="{TemplateBinding Background}" Data="M11,21L0,21 0,6 5,1 6,1 11,6z"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" StrokeThickness="1" Data="M0.5,20L0.5,5.5 5,0.5 5.5,0.5"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1" Data="M5.5,0.5L6,0.5 10.5,5.5 10.5,20.5 0,20.5"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" StrokeThickness="1" Data="M1.5,19L1.5,5.5 5,1.5 5.5,1.5"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" StrokeThickness="1" Data="M5.5,1.5L6,1.5 9.5,5.5 9.5,19.5 1,19.5"/>
    														<Path Opacity="0.5" Fill="{TemplateBinding Foreground}" Data="M9,19L2,19 2,6 5.5,2 9,6z"/>
    													</Canvas>
    													<ControlTemplate.Triggers>
    														<Trigger Property="IsDragging" Value="True">
    															<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    														</Trigger>
    														<Trigger Property="IsEnabled" Value="False">
    															<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    														</Trigger>
    													</ControlTemplate.Triggers>
    												</ControlTemplate>
    											</Setter.Value>
    										</Setter>
    									</Style>
    								</Setter.Value>
    							</Setter>
    							<Setter Property="Margin" TargetName="TrackBackground" Value="0,3,0,0"/>
    						</Trigger>
    						<Trigger Property="TickPlacement" Value="BottomRight">
    							<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
    							<Setter Property="Style" TargetName="Thumb">
    								<Setter.Value>
    									<Style TargetType="{x:Type Thumb}">
    										<Setter Property="OverridesDefaultStyle" Value="True"/>
    										<Setter Property="Foreground" Value="{x:Null}"/>
    										<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    										<Setter Property="Height" Value="21"/>
    										<Setter Property="Width" Value="11"/>
    										<Setter Property="Template">
    											<Setter.Value>
    												<ControlTemplate TargetType="{x:Type Thumb}">
    													<Canvas SnapsToDevicePixels="True">
    														<Path Fill="{TemplateBinding Background}" Data="M11,0L0,0 0,15 5,21 6,21 11,15z"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" StrokeThickness="1" Data="M10,0.5L0.5,0.5 0.5,15.5 5,20.5 5.5,20.5"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1" Data="M5.5,20.5L6,20.5 10.5,15.5 10.5,0"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" StrokeThickness="1" Data="M9,1.5L1.5,1.5 1.5,15.5 5,19.5 5.5,19.5"/>
    														<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" StrokeThickness="1" Data="M5.5,19.5L6,19.5 9.5,15.5 9.5,1"/>
    														<Path Opacity="0.5" Fill="{TemplateBinding Foreground}" Data="M9,2L2,2 2,15 5.5,19 9,15z"/>
    													</Canvas>
    													<ControlTemplate.Triggers>
    														<Trigger Property="IsDragging" Value="True">
    															<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    														</Trigger>
    														<Trigger Property="IsEnabled" Value="False">
    															<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    														</Trigger>
    													</ControlTemplate.Triggers>
    												</ControlTemplate>
    											</Setter.Value>
    										</Setter>
    									</Style>
    								</Setter.Value>
    							</Setter>
    							<Setter Property="Margin" TargetName="TrackBackground" Value="0,0,0,3"/>
    						</Trigger>
    						<Trigger Property="TickPlacement" Value="Both">
    							<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
    							<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
    						</Trigger>
    						<Trigger Property="IsSelectionRangeEnabled" Value="True">
    							<Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Style.Triggers>
    			<Trigger Property="Orientation" Value="Vertical">
    				<Setter Property="Template">
    					<Setter.Value>
    						<ControlTemplate TargetType="{x:Type Slider}">
    							<Border Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    								<Grid>
    									<Grid.ColumnDefinitions>
    										<ColumnDefinition Width="Auto"/>
    										<ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
    										<ColumnDefinition Width="Auto"/>
    									</Grid.ColumnDefinitions>
    									<Grid.RowDefinitions>
    										<RowDefinition Height="*"/>
    									</Grid.RowDefinitions>
    									<TickBar Visibility="Collapsed" x:Name="LeftTick" Width="4" Fill="{TemplateBinding Foreground}" Placement="Left"/>
    									<Microsoft_Windows_Themes:ClassicBorderDecorator Margin="0,0,1,0" x:Name="TrackBackground" Width="4" BorderStyle="Sunken" BorderThickness="2,2,2,2" Grid.Column="1">
    										<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    											<SolidColorBrush/>
    										</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    										<Canvas Margin="-2,-2,-2,-2">
    											<Rectangle Visibility="Hidden" x:Name="PART_SelectionRange" Width="4" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
    										</Canvas>
    									</Microsoft_Windows_Themes:ClassicBorderDecorator>
    									<Track x:Name="PART_Track" Grid.Column="1">
    										<Track.DecreaseRepeatButton>
    											<RepeatButton Command="Slider.DecreaseLarge">
    												<RepeatButton.Style>
    													<Style TargetType="{x:Type RepeatButton}">
    														<Setter Property="OverridesDefaultStyle" Value="True"/>
    														<Setter Property="IsTabStop" Value="False"/>
    														<Setter Property="Focusable" Value="False"/>
    														<Setter Property="Background" Value="#00FFFFFF"/>
    														<Setter Property="Template">
    															<Setter.Value>
    																<ControlTemplate TargetType="{x:Type RepeatButton}">
    																	<Border Background="{TemplateBinding Background}"/>
    																</ControlTemplate>
    															</Setter.Value>
    														</Setter>
    													</Style>
    												</RepeatButton.Style>
    											</RepeatButton>
    										</Track.DecreaseRepeatButton>
    										<Track.IncreaseRepeatButton>
    											<RepeatButton Command="Slider.IncreaseLarge">
    												<RepeatButton.Style>
    													<Style TargetType="{x:Type RepeatButton}">
    														<Setter Property="OverridesDefaultStyle" Value="True"/>
    														<Setter Property="IsTabStop" Value="False"/>
    														<Setter Property="Focusable" Value="False"/>
    														<Setter Property="Background" Value="#00FFFFFF"/>
    														<Setter Property="Template">
    															<Setter.Value>
    																<ControlTemplate TargetType="{x:Type RepeatButton}">
    																	<Border Background="{TemplateBinding Background}"/>
    																</ControlTemplate>
    															</Setter.Value>
    														</Setter>
    													</Style>
    												</RepeatButton.Style>
    											</RepeatButton>
    										</Track.IncreaseRepeatButton>
    										<Track.Thumb>
    											<Thumb x:Name="Thumb">
    												<Thumb.Style>
    													<Style TargetType="{x:Type Thumb}">
    														<Setter Property="OverridesDefaultStyle" Value="True"/>
    														<Setter Property="Foreground" Value="{x:Null}"/>
    														<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    														<Setter Property="Width" Value="21"/>
    														<Setter Property="Height" Value="11"/>
    														<Setter Property="Template">
    															<Setter.Value>
    																<ControlTemplate TargetType="{x:Type Thumb}">
    																	<Microsoft_Windows_Themes:ClassicBorderDecorator Background="{TemplateBinding Background}" BorderStyle="Raised" BorderThickness="3,3,3,3">
    																		<Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																			<SolidColorBrush/>
    																		</Microsoft_Windows_Themes:ClassicBorderDecorator.BorderBrush>
    																		<Rectangle Opacity="0.5" Margin="-1,-1,-1,-1" Fill="{TemplateBinding Foreground}"/>
    																	</Microsoft_Windows_Themes:ClassicBorderDecorator>
    																	<ControlTemplate.Triggers>
    																		<Trigger Property="IsDragging" Value="True">
    																			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																		</Trigger>
    																		<Trigger Property="IsEnabled" Value="False">
    																			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																		</Trigger>
    																	</ControlTemplate.Triggers>
    																</ControlTemplate>
    															</Setter.Value>
    														</Setter>
    													</Style>
    												</Thumb.Style>
    											</Thumb>
    										</Track.Thumb>
    									</Track>
    									<TickBar Visibility="Collapsed" x:Name="RightTick" Width="4" Grid.Column="2" Grid.RowSpan="3" Fill="{TemplateBinding Foreground}" Placement="Right"/>
    								</Grid>
    							</Border>
    							<ControlTemplate.Triggers>
    								<Trigger Property="TickPlacement" Value="TopLeft">
    									<Setter Property="Visibility" TargetName="LeftTick" Value="Visible"/>
    									<Setter Property="Style" TargetName="Thumb">
    										<Setter.Value>
    											<Style TargetType="{x:Type Thumb}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="Foreground" Value="{x:Null}"/>
    												<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    												<Setter Property="Width" Value="21"/>
    												<Setter Property="Height" Value="11"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type Thumb}">
    															<Canvas SnapsToDevicePixels="True">
    																<Path Fill="{TemplateBinding Background}" Data="M21,11L21,0 6,0 0,5 0,6 6,11z"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" StrokeThickness="1" Data="M20,0.5L5.5,0.5 0.5,5 0.5,5.5"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1" Data="M0.5,5.5L0.5,6 5.5,10.5 20.5,10.5 20.5,0"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" StrokeThickness="1" Data="M19,1.5L5.5,1.5 1.5,5 1.5,5.5"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" StrokeThickness="1" Data="M1.5,5.5L1.5,6 5.5,9.5 19.5,9.5 19.5,1"/>
    																<Path Opacity="0.5" Fill="{TemplateBinding Foreground}" Data="M19,9L19,2 6,2 2,5.5 6,9z"/>
    															</Canvas>
    															<ControlTemplate.Triggers>
    																<Trigger Property="IsDragging" Value="True">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																</Trigger>
    																<Trigger Property="IsEnabled" Value="False">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																</Trigger>
    															</ControlTemplate.Triggers>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</Setter.Value>
    									</Setter>
    									<Setter Property="Margin" TargetName="TrackBackground" Value="3,0,0,0"/>
    								</Trigger>
    								<Trigger Property="TickPlacement" Value="BottomRight">
    									<Setter Property="Visibility" TargetName="RightTick" Value="Visible"/>
    									<Setter Property="Style" TargetName="Thumb">
    										<Setter.Value>
    											<Style TargetType="{x:Type Thumb}">
    												<Setter Property="OverridesDefaultStyle" Value="True"/>
    												<Setter Property="BorderThickness" Value="0,0,0,0"/>
    												<Setter Property="Foreground" Value="{x:Null}"/>
    												<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    												<Setter Property="Width" Value="21"/>
    												<Setter Property="Height" Value="11"/>
    												<Setter Property="Template">
    													<Setter.Value>
    														<ControlTemplate TargetType="{x:Type Thumb}">
    															<Canvas SnapsToDevicePixels="True">
    																<Path Fill="{TemplateBinding Background}" Data="M0,11L0,0 15,0 21,5 21,6 15,11z"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" StrokeThickness="1" Data="M0.5,10L0.5,0.5 15.5,0.5 20.5,5 20.5,5.5"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1" Data="M20.5,5.5L20.5,6 15.5,10.5 0,10.5"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" StrokeThickness="1" Data="M1.5,9L1.5,1.5 15.5,1.5 19.5,5 19.5,5.5"/>
    																<Path Stroke="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" StrokeThickness="1" Data="M19.5,5.5L19.5,6 15.5,9.5 1,9.5"/>
    																<Path Opacity="0.5" Fill="{TemplateBinding Foreground}" Data="M2,9L2,2 15,2 19,5.5 15,9"/>
    															</Canvas>
    															<ControlTemplate.Triggers>
    																<Trigger Property="IsDragging" Value="True">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																</Trigger>
    																<Trigger Property="IsEnabled" Value="False">
    																	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
    																</Trigger>
    															</ControlTemplate.Triggers>
    														</ControlTemplate>
    													</Setter.Value>
    												</Setter>
    											</Style>
    										</Setter.Value>
    									</Setter>
    									<Setter Property="Margin" TargetName="TrackBackground" Value="0,0,3,0"/>
    								</Trigger>
    								<Trigger Property="TickPlacement" Value="Both">
    									<Setter Property="Visibility" TargetName="LeftTick" Value="Visible"/>
    									<Setter Property="Visibility" TargetName="RightTick" Value="Visible"/>
    								</Trigger>
    								<Trigger Property="IsSelectionRangeEnabled" Value="True">
    									<Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
    								</Trigger>
    							</ControlTemplate.Triggers>
    						</ControlTemplate>
    					</Setter.Value>
    				</Setter>
    			</Trigger>
    		</Style.Triggers>
    	</Style>
    </Window.Resources>
    <Window.Top>
        <Binding Path="MainWindowTop" Mode="OneWay" Source="{x:Static settings:Settings.Default}"/>
    </Window.Top>
    <Window.Left>
        <Binding Path="MainWindowLeft" Mode="OneWay" Source="{x:Static settings:Settings.Default}"/>
    </Window.Left>
    <Window.Background>
        <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
            <GradientStop Color="#FF000000" Offset="1"/>
            <GradientStop Color="#FF000000" Offset="0"/>
            <GradientStop Color="{Binding Path=WindowColorScheme, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Offset="0.5" x:Name="middleStop"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid x:Name="LayoutRoot" Margin="0">
        <Border BorderThickness="1"  BorderBrush="#3FFFFFFF" CornerRadius="5" HorizontalAlignment="Left" Margin="12,12,0,30" >
            <StackPanel  Margin="5,5,5,5" HorizontalAlignment="Left" Name="LeftPanel"  >
                <StackPanel.Effect>
                    <DropShadowEffect Color="Black" Opacity="0.8" ShadowDepth="12"/>
                </StackPanel.Effect>
                <CheckBox   IsChecked="{Binding Path=KeepMainHistory, Mode=TwoWay, Source={x:Static settings:Settings.Default}}"  Margin="0"  ><Label Foreground="White" Content="Save Global History"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=KeepPrivateHistory, Mode=TwoWay, Source={x:Static settings:Settings.Default}}"  Margin="0"  ><Label Foreground="White" Content="Save Private History"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=PopupContactOnline, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Popup New User Online"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=PopupContactLeaving, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Popup Contact Leaving"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=PopupNewGlobalMessage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Popup New Global Message"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=PopupNewPrivateMessage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Popup New Private Message"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=FlashMainWindowOnNewMessage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Flash Main Window On New Message"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=FlashPrivateWindowOnNewMessage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Flash Private Window On New Message"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=FlashTabOnNewMessage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Flash TabOn New Message"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=FlashContactListUserOnNewMessage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"  ><Label Foreground="White" Content="Flash Contact List User On New Message"/></CheckBox>
                <CheckBox   IsEnabled="False" IsChecked="{Binding Path=TabPrivateMessages, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Tab Private Messages"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=DisplayUserImage, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Display User Images In Private Windows"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=DisplayMessageTimeDelay, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Display Message Time Delay"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=DisplayDateTimeStamp, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Display Time Stamp For Messages"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=DisplayUserName, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Display User Names For Global Messages"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=IsStartedWithWindows, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Start Program When Windows Starts"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=RememberLogin, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   ><Label Foreground="White" Content="Remember Login Information"/></CheckBox>
                <CheckBox   IsChecked="{Binding Path=AutoScrollMessageWindow, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                    <Label Foreground="White" Content="Auto Scroll Messages"/>
                </CheckBox>
                <CheckBox   IsChecked="{Binding Path=IsFancyEffectsEnabled, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                    <Label Foreground="White" Content="Enable Fancy Effects"/>
                </CheckBox>

            </StackPanel>
        </Border>
        <Border HorizontalAlignment="Right" Margin="0,18,12,30" BorderThickness="1" BorderBrush="#3FFFFFFF" CornerRadius="5,5,5,5">
        	<StackPanel  Margin="5,5,5,5" Name="RightPanel">
                <StackPanel.Effect>
                    <DropShadowEffect/>
                </StackPanel.Effect>
                <ComboBox x:Name="_sFontChooser" ItemsSource="{x:Static Fonts.SystemFontFamilies}" 
        			Style="{StaticResource FontSelectorCombobox}"
        			MaxDropDownHeight="200"
             
        			FontSize="{Binding Path=SystemFontSize, Mode=OneWay, Source={x:Static settings:Settings.Default}}"
        			Width="250"  SelectedItem="{Binding Path=SystemFontFamily, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Template="{DynamicResource ComboBoxControlTemplate1}" />
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="System Font Size"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider  Minimum="5" Maximum="20" Value="{Binding Path=SystemFontSize, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" HorizontalAlignment="Right" AutoToolTipPlacement="TopLeft" Width="250" Style="{DynamicResource SliderStyle1}" />
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="System Font Colour (Red)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider Width="250" x:Name="sysColChooserR" ValueChanged="sysColChooser_ValueChanged"  Minimum="0" Maximum="255" Value="{Binding Path=SystemFontColorR, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="System Font Colour (Green)"  HorizontalAlignment="Center"   >

                </TextBlock>                
                <Slider Width="250" x:Name="sysColChooserG" ValueChanged="sysColChooser_ValueChanged" Minimum="0" Maximum="255" Value="{Binding Path=SystemFontColorG, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="System Font Colour (Blue)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider Width="250" x:Name="sysColChooserB" ValueChanged="sysColChooser_ValueChanged" Minimum="0" Maximum="255" Value="{Binding Path=SystemFontColorB, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <CheckBox HorizontalAlignment="Center"   IsChecked="{Binding Path=IsSystemFontBold, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                        <Label Foreground="White" Content="Bold" FontFamily="Verdana" FontSize="10"/>
                    </CheckBox>
                    <CheckBox HorizontalAlignment="Center"   IsChecked="{Binding Path=IsSystemFontItalics, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                        <Label Foreground="White" Content="Italics" FontFamily="Verdana" FontSize="10"/>
                    </CheckBox>
                    <CheckBox HorizontalAlignment="Center"   IsChecked="{Binding Path=IsSystemFontUnderlined, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                        <Label Foreground="White" Content="Underline" FontFamily="Verdana" FontSize="10"/>
                    </CheckBox>
                </StackPanel>
                <Separator></Separator>
                <CheckBox HorizontalAlignment="Center"   IsChecked="{Binding Path=OverrideIncomingFonts, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                    <Label Foreground="White" Content="Override Incoming Fonts" FontFamily="Verdana" FontSize="10"/>
                </CheckBox>
                <ComboBox x:Name="_oFontChooser" ItemsSource="{x:Static Fonts.SystemFontFamilies}" 
        			Style="{StaticResource FontSelectorCombobox}"
        			MaxDropDownHeight="200"
                    IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}"
        			FontSize="{Binding Path=OverrideIncomingFontSize, Mode=OneWay, Source={x:Static settings:Settings.Default}}"
        			Width="250"  SelectedItem="{Binding Path=OverrideIncomingFontFamily, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Template="{DynamicResource ComboBoxControlTemplate1}" />
                <TextBlock IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Override Font Size"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}"  Minimum="5" Maximum="20" Value="{Binding Path=OverrideIncomingFontSize, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" HorizontalAlignment="Right" AutoToolTipPlacement="TopLeft" Width="250" Style="{DynamicResource SliderStyle1}" />
                <TextBlock IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}"  Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Override Font Colour (Red)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Width="250" x:Name="overColChooserR" ValueChanged="overColChooser_ValueChanged"  Minimum="0" Maximum="255" Value="{Binding Path=OverrideIncomingFontColourR, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <TextBlock IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Override Font Colour (Green)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Width="250" x:Name="overColChooserG" ValueChanged="overColChooser_ValueChanged" Minimum="0" Maximum="255" Value="{Binding Path=OverrideIncomingFontColourG, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <TextBlock IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Override Font Colour (Blue)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" Width="250" x:Name="overColChooserB" ValueChanged="overColChooser_ValueChanged" Minimum="0" Maximum="255" Value="{Binding Path=OverrideIncomingFontColourB, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <CheckBox IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" HorizontalAlignment="Center"   IsChecked="{Binding Path=IsOverrideFontBold, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                        <Label Foreground="White" Content="Bold" FontFamily="Verdana" FontSize="10"/>
                    </CheckBox>
                    <CheckBox IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" HorizontalAlignment="Center"   IsChecked="{Binding Path=IsOverrideFontItalics, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                        <Label Foreground="White" Content="Italics" FontFamily="Verdana" FontSize="10"/>
                    </CheckBox>
                    <CheckBox IsEnabled="{Binding Path=OverrideIncomingFonts, Mode=OneWay, Source={x:Static settings:Settings.Default}}" HorizontalAlignment="Center"   IsChecked="{Binding Path=IsOverrideFontUnderlined, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Margin="0"   >
                        <Label Foreground="White" Content="Underline" FontFamily="Verdana" FontSize="10"/>
                    </CheckBox>
                </StackPanel>
                <Separator></Separator>
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Window Colour Scheme (Red)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider Width="250" x:Name="winColChooserR" ValueChanged="winColChooser_ValueChanged"  Minimum="0" Maximum="255" Value="{Binding Path=WindowColorR, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Window Colour Scheme (Green)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider Width="250" x:Name="winColChooserG" ValueChanged="winColChooser_ValueChanged" Minimum="0" Maximum="255" Value="{Binding Path=WindowColorG, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />
                <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Window Colour Scheme (Blue)"  HorizontalAlignment="Center"   >

                </TextBlock>
                <Slider Width="250" x:Name="winColChooserB" ValueChanged="winColChooser_ValueChanged" Minimum="0" Maximum="255" Value="{Binding Path=WindowColorB, Mode=TwoWay, Source={x:Static settings:Settings.Default}}" Height="Auto" HorizontalAlignment="Right" Style="{DynamicResource SliderStyle1}" AutoToolTipPlacement="TopLeft" />


            </StackPanel>
        </Border>


        <TextBlock Foreground="Red" FontSize="16" FontFamily="Verdana" Cursor="Hand" MouseDown="_resetBtn_MouseDown"  Text="Reset To Defaults"  HorizontalAlignment="Left" Margin="18,0,0,5" x:Name="_resetBtn" VerticalAlignment="Bottom" Height="18.23" Width="133.03">
            <TextBlock.Effect>
                <DropShadowEffect/>
            </TextBlock.Effect>
        </TextBlock>
        <TextBlock Foreground="White" FontSize="15" FontFamily="Verdana" Cursor="Hand" MouseDown="_doneBtn_MouseDown"  Text="Done"  HorizontalAlignment="Right" Margin="0,0,5,5" x:Name="_doneBtn" VerticalAlignment="Bottom"  >
            <TextBlock.Effect>
                <DropShadowEffect/>
            </TextBlock.Effect>
        </TextBlock>
    </Grid>
</Window>
